package com.ruoyi.system.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 电表数据对象 meter_data
 * 
 * @author ruoyi
 * @date 2023-05-20
 */
public class MeterData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 设备ID/电表编号 */
    @Excel(name = "设备ID/电表编号")
    private String deviceId;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date collectTime;
    
    /** 时间点（小时） */
    @Excel(name = "时间点（小时）")
    private Integer timePoint;

    /** A相电压 */
    @Excel(name = "A相电压")
    private Double ua;

    /** B相电压 */
    @Excel(name = "B相电压")
    private Double ub;

    /** C相电压 */
    @Excel(name = "C相电压")
    private Double uc;

    /** AB线电压 */
    @Excel(name = "AB线电压")
    private Double uab;

    /** BC线电压 */
    @Excel(name = "BC线电压")
    private Double ubc;

    /** CA线电压 */
    @Excel(name = "CA线电压")
    private Double uca;

    /** A相电流 */
    @Excel(name = "A相电流")
    private Double ia;

    /** B相电流 */
    @Excel(name = "B相电流")
    private Double ib;

    /** C相电流 */
    @Excel(name = "C相电流")
    private Double ic;

    /** 总有功功率 */
    @Excel(name = "总有功功率")
    private Double pt;

    /** 总无功功率 */
    @Excel(name = "总无功功率")
    private Double qt;

    /** 总功率因数 */
    @Excel(name = "总功率因数")
    private Double pf;

    /** 频率 */
    @Excel(name = "频率")
    private Double freq;
    
    /** 有功总电能 */
    @Excel(name = "有功总电能")
    private Double totalActiveEnergy;

    /** 数据状态：1-正常，0-异常 */
    @Excel(name = "数据状态", readConverterExp = "1=正常,0=异常")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    
    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    
    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }
    
    public void setUa(Double ua) 
    {
        this.ua = ua;
    }

    public Double getUa() 
    {
        return ua;
    }
    
    public void setUb(Double ub) 
    {
        this.ub = ub;
    }

    public Double getUb() 
    {
        return ub;
    }
    
    public void setUc(Double uc) 
    {
        this.uc = uc;
    }

    public Double getUc() 
    {
        return uc;
    }
    
    public void setUab(Double uab) 
    {
        this.uab = uab;
    }

    public Double getUab() 
    {
        return uab;
    }
    
    public void setUbc(Double ubc) 
    {
        this.ubc = ubc;
    }

    public Double getUbc() 
    {
        return ubc;
    }
    
    public void setUca(Double uca) 
    {
        this.uca = uca;
    }

    public Double getUca() 
    {
        return uca;
    }
    
    public void setIa(Double ia) 
    {
        this.ia = ia;
    }

    public Double getIa() 
    {
        return ia;
    }
    
    public void setIb(Double ib) 
    {
        this.ib = ib;
    }

    public Double getIb() 
    {
        return ib;
    }
    
    public void setIc(Double ic) 
    {
        this.ic = ic;
    }

    public Double getIc() 
    {
        return ic;
    }
    
    public void setPt(Double pt) 
    {
        this.pt = pt;
    }

    public Double getPt() 
    {
        return pt;
    }
    
    public void setQt(Double qt) 
    {
        this.qt = qt;
    }

    public Double getQt() 
    {
        return qt;
    }
    
    public void setPf(Double pf) 
    {
        this.pf = pf;
    }

    public Double getPf() 
    {
        return pf;
    }
    
    public void setFreq(Double freq) 
    {
        this.freq = freq;
    }

    public Double getFreq() 
    {
        return freq;
    }
    
    public void setTotalActiveEnergy(Double totalActiveEnergy) 
    {
        this.totalActiveEnergy = totalActiveEnergy;
    }

    public Double getTotalActiveEnergy() 
    {
        return totalActiveEnergy;
    }
    
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setTimePoint(Integer timePoint) 
    {
        this.timePoint = timePoint;
    }

    public Integer getTimePoint() 
    {
        return timePoint;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("collectTime", getCollectTime())
            .append("timePoint", getTimePoint())
            .append("ua", getUa())
            .append("ub", getUb())
            .append("uc", getUc())
            .append("uab", getUab())
            .append("ubc", getUbc())
            .append("uca", getUca())
            .append("ia", getIa())
            .append("ib", getIb())
            .append("ic", getIc())
            .append("pt", getPt())
            .append("qt", getQt())
            .append("pf", getPf())
            .append("freq", getFreq())
            .append("totalActiveEnergy", getTotalActiveEnergy())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}